/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 主体样式 */
body {
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 400px;
}

/* Logo样式 */
.logo {
    text-align: center;
    margin-bottom: 1rem;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1rem;
}

/* 登录表单样式 */
.login-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.error-message {
    color: #ff3b30; /* 红色错误提示 */
    text-align: center;
    margin-top: 0.5rem;
    height: 1.2rem;
    font-size: 0.9rem;
}

input[type="text"] {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #ff3b30; /* 红色作为强调色 */
}

button#loginBtn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff3b30;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

button#loginBtn:hover {
    background-color: #e02e24;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    .logo h1 {
        font-size: 2rem;
    }
}